package com.pxmeta.dynamic.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 动态用户点赞表
 * </p>
 *
 * @author wcl
 * @since 2022-06-26
 */
@TableName("kt_community_dynamic_user_like")
@Data
@ApiModel(value = "CommunityDynamicUserLike对象", description = "动态用户点赞表")
public class CommunityDynamicUserLike implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("圈子id")
    private Long circleId;

    @ApiModelProperty("动态id")
    private Long dynamicId;

    @TableLogic(value = "0", delval = "1")
    @ApiModelProperty("是否删除")
    private Integer isDel;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

}
